#ifndef ROADITEM_H
#define ROADITEM_H

#include <QGraphicsPathItem>
#include "point.h"

class RoadItem : public QGraphicsPathItem
{
public:
  RoadItem(QGraphicsItem* parent = 0);

  void setFirst(const GeometryUtilities::Point& first);
  void setSecond(const GeometryUtilities::Point& second);
  void setLanesFirstSecond(unsigned int num);
  void setLanesSecondFirst(unsigned int num);
  void setRoadWidth(unsigned int w);

protected:
  void createRoad();

  unsigned int mLanesFirstSecond;
  unsigned int mLanesSecondFirst;
  int mRoadWidth;
  GeometryUtilities::Point mFirst;
  GeometryUtilities::Point mSecond;
};

#endif
